package com.technician.model.dto.user;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class UserRegisterRequest implements Serializable {

    private static final long serialVersionUID = 8609818798428523599L;

    /**
     * 用户名
     */
    @NotBlank(message = "账号不能为空")
    @Size(min = 4,max = 20,message = "账号必须大于4位小于20位")
    private String userName;


    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    @Size(min = 6,max = 20,message = "密码必须大于6位小于20位")
    private String password;

    /**
     * 确认密码
     */
    private String checkPassword;

}
